<%@page import="com.vo.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>忘记密码</title>
</head>
<body>
	<%
		User userinfo = (User)session.getAttribute("userinfo");
	%>
	<h2>忘记密码</h2>
	<form action="ForgetPasswordServlet" method="post">
		<table >
			<tr>
				<td>ID:</td>
				<td><input type="text" name="id" value="<%=userinfo.getId() %>" readonly="readonly" /></td>
			</tr>
			<tr>
				<td>用户名:</td>
				<td><input type="text" name="username" value="<%=userinfo.getUsername()%>"/></td>
			</tr>
			<tr>
				<td>请输入密码:</td>
				<td><input  type="password" name="password"/></td>
			</tr>
			<tr>
				<td>设置密保问题:</td>
				<td>
					<select name="question">
						<option value="你喜欢吃什么">你喜欢吃什么</option>
						<option value="你喜欢喝什么">你喜欢喝什么</option>
						<option value="你喜欢玩什么">你喜欢玩什么</option>
					</select>
				</td>
			</tr>
			<tr>
				<td>设置答案:</td>
				<td><input type="text" name="answer"/></td>
			</tr>
			<tr>
				<td>用户类型:</td>
				<td><input type="text" name="type" value="<%=userinfo.getType()%>" readonly/></td>
			</tr>
			<tr>
				<td><input type="submit" value="确认修改"/></td>
			</tr>
		</table>
	</form>


</body>
</html>